#include <stdio.h>

int *find_largest(int a[], int n){
	int *max = &a[0];	
	for(int i = 0; i < n; ++i){
		if (*max < a[i])
			*max = a[i];
	}
	return max;
}


int main(){
	int a[] = {1, 2, 44, 5,52};
	int *p;
	p = find_largest(a, 5);
	printf("find largest: %d\n", *p);
}
